<template>
    <div class="box">
        <div v-html="article.content"></div>
    </div>
</template>

<script>
    export default {
        name: "news",
        data() {
            return {
                article: {}
            }
        },
        mounted() {
            this.getarticle();
        },
        methods: {
            getarticle() {
                let that = this;
                that.request1.post1({
                    url: that.Url + "api/article/detail/",
                    params: {
                        articleid: that.$route.query.id
                    },
                    success: function (res) {
                        if (res.data.code == 1) {
                            that.article = res.data.data.article;
                            console.log(that.article.content);
                        } else {
                            alert(res.data.msg)
                        }
                    },
                    fail: function (error) {
                        alert(error.data.msg);
                    }
                })
            }
        }
    }
</script>

<style scoped>
    .box{
        width: 100%;
    }
</style>